import java.util.Random;


public class CapitalistWorld {
	public static enum Quality {
		WEAK, MEDIUM, GOOD
	}
	
	public static enum Strategy {
		CHEAP, MODERATE, EXPENSIVE
	}
	
	public static boolean checkThreshold(double prob) {
		if (prob == 0) return false;
		
		Random randGen = new Random();
		int threshold = (int) Math.floor(prob * 100);
		return (randGen.nextInt(100) <= threshold);
	}
}
